﻿//-----------------------------------------------------------------------
// <summary>
//  The file contains a class that used to treat style cop settings 
// </summary>
// <copyright file="ErrorExtensioner.cs" company="DSSoftLogic">
//     Copyright@ DSSoftLogic 2011, Non-Commercial. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace Property.Silverlight.Adminstration.Helper
{
    using System;

    /// <summary>
    /// This class will help to fetch error from other project.
    /// </summary>
    public class ErrorExtensioner
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ErrorExtensioner"/> class.
        /// </summary>
        public ErrorExtensioner()
        {
        }

        /// <summary>
        /// Gets or sets ErrorReport.
        /// </summary>
        public static Exception SendErrorReport { get; set; }

        /// <summary>
        /// This method will help to fetch error.
        /// </summary>
        /// <param name="exception">message</param>
        public static Exception FetchError(Exception message)
        {
            return SendErrorReport = message;
        }
    }
}
